﻿using System.Collections.Generic;
using Xoohoo.Modules.CMS.Models;
using System;
using Xoohoo.Models;

namespace Xoohoo.Modules.CMS.Services
{
    public interface ICategoryService
    {
        Category GetItem(Guid categoryID);
        Category GetItem(string categoryName);
        List<Category> GetList(Guid? parentID = null);
        ModelResult Save(CategoryInput categoryInput);
        bool Remove(Guid categoryID);
        bool Move(Guid categoryID, MovingTarget target);
        bool Audit(Guid categoryID, bool isAuditing);
        bool Recommend(Guid categoryID, bool isCommend);
        bool Comment(Guid categoryID, bool allowComment);
        bool Audit(IEnumerable<Guid> iDs, bool isAuditing);
        bool Recommend(IEnumerable<Guid> iDs, bool isCommend);
        bool Comment(IEnumerable<Guid> iDs, bool allowComment);
    }
}
